<!DOCTYPE html>
<html lang="zh-CN">

<head>
    {{$this->need('public/include.php')}}
    <script src="https://cdn.jsdelivr.net/npm/draggabilly@2.3.0/dist/draggabilly.pkgd.js"></script>
    <script src="{{$this->options->themeUrl('assets/js/joe.leaving.min.js')}}"></script>
</head>

<body>
<div id="Joe">
    {{$this->need('public/header.php')}}
    <div class="joe_container">
        <div class="joe_main">
            <div class="joe_detail" data-cid="{{echo $this->cid}}">
                {{$this->need('public/batten.php')}}
                <div class="joe_detail__leaving">
                    {{$this->comments()->to($comments)}}
                    {{if ($comments->have()) :}}
                    <ul class="joe_detail__leaving-list">
                        {{while ($comments->next()) :}}
                        <li class="item">
                            <div class="user">
                                <img class="avatar lazyload" src="{{_getAvatarLazyload()}}" data-src="{{_getAvatarByMail($comments->mail)}}" alt="用户头像" />
                                <div class="nickname">{{$comments->author()}}</div>
                                <div class="date">{{$comments->date('Y/m/d')}}</div>
                            </div>
                            <div class="wrapper">
                                <div class="content">{{_parseLeavingReply($comments->content)}}</div>
                            </div>
                        </li>
                        {{endwhile}}
                    </ul>
                    {{else :}}
                    <div class="joe_detail__leaving-none">暂无留言，期待第一个脚印。</div>
                    {{endif}}
                </div>
            </div>
            {{$this->need('public/comment.php')}}
        </div>
    </div>
    {{$this->need('public/footer.php')}}
</div>
</body>

</html>